package com.dmgis.hndz.sddz.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 行政区划表
 * @TableName zdda01a
 */
@TableName(value ="zdda01a")
@Data
public class Zdda01a implements Serializable {
    /**
     * 行政区划代码
     */
    @TableField(value = "zdda01a010")
    private String zdda01a010;

    /**
     * 行政区划名
     */
    @TableField(value = "zdda01a020")
    private String zdda01a020;

    /**
     * 原乡镇编码
     */
    @TableField(value = "zdda01a030")
    private String zdda01a030;

    /**
     * 原乡镇名称
     */
    @TableField(value = "zdda01a040")
    private String zdda01a040;

    /**
     * 上级行政区划代码
     */
    @TableField(value = "zdda01a045")
    private String zdda01a045;

    /**
     * 经度
     */
    @TableField(value = "zdda01a050")
    private BigDecimal zdda01a050;

    /**
     * 纬度
     */
    @TableField(value = "zdda01a060")
    private BigDecimal zdda01a060;

    /**
     * 备注
     */
    @TableField(value = "zdda01a070")
    private String zdda01a070;

    /**
     * 最小经度
     */
    @TableField(value = "zdda01a080")
    private BigDecimal zdda01a080;

    /**
     * 最小纬度
     */
    @TableField(value = "zdda01a090")
    private BigDecimal zdda01a090;

    /**
     * 最大经度
     */
    @TableField(value = "zdda01a100")
    private BigDecimal zdda01a100;

    /**
     * 最大纬度
     */
    @TableField(value = "zdda01a110")
    private BigDecimal zdda01a110;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Zdda01a other = (Zdda01a) that;
        return (this.getZdda01a010() == null ? other.getZdda01a010() == null : this.getZdda01a010().equals(other.getZdda01a010()))
            && (this.getZdda01a020() == null ? other.getZdda01a020() == null : this.getZdda01a020().equals(other.getZdda01a020()))
            && (this.getZdda01a030() == null ? other.getZdda01a030() == null : this.getZdda01a030().equals(other.getZdda01a030()))
            && (this.getZdda01a040() == null ? other.getZdda01a040() == null : this.getZdda01a040().equals(other.getZdda01a040()))
            && (this.getZdda01a045() == null ? other.getZdda01a045() == null : this.getZdda01a045().equals(other.getZdda01a045()))
            && (this.getZdda01a050() == null ? other.getZdda01a050() == null : this.getZdda01a050().equals(other.getZdda01a050()))
            && (this.getZdda01a060() == null ? other.getZdda01a060() == null : this.getZdda01a060().equals(other.getZdda01a060()))
            && (this.getZdda01a070() == null ? other.getZdda01a070() == null : this.getZdda01a070().equals(other.getZdda01a070()))
            && (this.getZdda01a080() == null ? other.getZdda01a080() == null : this.getZdda01a080().equals(other.getZdda01a080()))
            && (this.getZdda01a090() == null ? other.getZdda01a090() == null : this.getZdda01a090().equals(other.getZdda01a090()))
            && (this.getZdda01a100() == null ? other.getZdda01a100() == null : this.getZdda01a100().equals(other.getZdda01a100()))
            && (this.getZdda01a110() == null ? other.getZdda01a110() == null : this.getZdda01a110().equals(other.getZdda01a110()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getZdda01a010() == null) ? 0 : getZdda01a010().hashCode());
        result = prime * result + ((getZdda01a020() == null) ? 0 : getZdda01a020().hashCode());
        result = prime * result + ((getZdda01a030() == null) ? 0 : getZdda01a030().hashCode());
        result = prime * result + ((getZdda01a040() == null) ? 0 : getZdda01a040().hashCode());
        result = prime * result + ((getZdda01a045() == null) ? 0 : getZdda01a045().hashCode());
        result = prime * result + ((getZdda01a050() == null) ? 0 : getZdda01a050().hashCode());
        result = prime * result + ((getZdda01a060() == null) ? 0 : getZdda01a060().hashCode());
        result = prime * result + ((getZdda01a070() == null) ? 0 : getZdda01a070().hashCode());
        result = prime * result + ((getZdda01a080() == null) ? 0 : getZdda01a080().hashCode());
        result = prime * result + ((getZdda01a090() == null) ? 0 : getZdda01a090().hashCode());
        result = prime * result + ((getZdda01a100() == null) ? 0 : getZdda01a100().hashCode());
        result = prime * result + ((getZdda01a110() == null) ? 0 : getZdda01a110().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", zdda01a010=").append(zdda01a010);
        sb.append(", zdda01a020=").append(zdda01a020);
        sb.append(", zdda01a030=").append(zdda01a030);
        sb.append(", zdda01a040=").append(zdda01a040);
        sb.append(", zdda01a045=").append(zdda01a045);
        sb.append(", zdda01a050=").append(zdda01a050);
        sb.append(", zdda01a060=").append(zdda01a060);
        sb.append(", zdda01a070=").append(zdda01a070);
        sb.append(", zdda01a080=").append(zdda01a080);
        sb.append(", zdda01a090=").append(zdda01a090);
        sb.append(", zdda01a100=").append(zdda01a100);
        sb.append(", zdda01a110=").append(zdda01a110);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}